package adapter.obj;

import adapter.Banner;

/**
 * 通过对象委托实现适配器
 */
public class PrintBanner extends Print {
    private Banner banner;

    public PrintBanner(Banner banner) {
        this.banner = banner;
    }

    @Override
    public void printWeak() {
        banner.showWithParen();
    }

    @Override
    public void printStrong() {

        banner.showWithAster();
    }
}
